package org.NooLab.openNLP.sources;

import org.NooLab.openNLP.grammar.ConjugationHarvesterIntf;
import org.NooLab.openNLP.grammar.VerbConjugation;
import org.NooLab.openNLP.grammar.VerbConjugationStorage;
import org.NooLab.utilities.strings.ArrUtilities;
import org.NooLab.utilities.files.DFutils;
import org.NooLab.utilities.logging.PrintLog;
import org.NooLab.utilities.strings.StringsUtil;




public class CactusConjugationHarvester implements ConjugationHarvesterIntf{
 
	
	// object references ..............

	VerbConjugationStorage conjugationTablesStorage;
	
	// main variables / properties ....
	String linguisticsProviderUrl = "http://conjd.cactus2000.de/";
 
		
	String language, shortlang, tablesPath="",configPath="" ;
	String targetFile ;
	
	VerbConjugation verb = null ;

	// volatile variables .............

	
	
	// helper objects .................

	DFutils fileutil = new DFutils();
	ArrUtilities arrutil = new ArrUtilities();
	StringsUtil strgutil = new StringsUtil();
	protected PrintLog out ;

	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
	public CactusConjugationHarvester( String lang, String basepath,String pathext,  VerbConjugationStorage vc, PrintLog outprn ){
		
		configPath = basepath;
		tablesPath = fileutil.createPath(basepath, pathext);
		this.out = outprn;

		conjugationTablesStorage = vc;
		conjugationTablesStorage.setOutPrn(outprn);

		shortlang = lang;
		// take this from config file (properties style) 
		if (lang.contentEquals("de")){
			language = "german";
		}
		if (lang.contentEquals("en")){
			language = "english";
		}

	}
	// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
	
	
	
	
	public void setLinguisticsProviderUrl( String linguisticsProviderUrl,
										   String requestpage, 
										   int requestmode) {

		
	}


	public int retrieveConjugationTableFromWeb(String wordlabel) {

		
		return -1;
	}

	
	public int assimilateVerb(String wordlabel, int adjustIdiomSpelling) {
	
		
		return -1;
	}

	 


}
